#include "lexer.hpp"
#include <iostream>

int main(){
    lexer test;
    int i =0;
    while(1){
    std::cout<<"######################## "<<++i<<" ########################"<<std::endl;
    try{
        Token out = test.scan();
        std::cout<<"Token:"<<out.tag()<<std::endl;
    }
    catch(const char*info){
        std::cout<<info<<std::endl;
    }
    test.showLexer();
    }
    return 0;
}